#coding:utf-8

from dao.orderdao import orderdao 
from model.order import Order
import time

class OrderService(object):

    def get_all_today(self):
        return orderdao.get_all_today()

    def get_all(self):
        return orderdao.get_all()

    def add_order(self, who, what, amount):
        return orderdao.add_order(what, amount, who)

    def update_order(self, id, audit_status):
        return orderdao.update_add(id, audit_status)

oservice = OrderService()